﻿
using AutoMapper;
using AutoMapper.Extensions.ExpressionMapping;
using HelenServer.BugEngine.Contracts;
using HelenServer.BugEngine.Dal;
using Microsoft.EntityFrameworkCore;

namespace HelenServer.ConsoleTestApp;

class Program
{
    public static BugEngineDbContext Context { get; private set; } = null!;
    public static IDalBugService BugService { get; private set; } = null!;
    public static IDalProductService ProductService { get; private set; } = null!;

    public static OperationUser User { get; private set; } = new OperationUser("#001", "Ray", new List<string>() { "admin", "tester" }, true);
    static async Task Main()
    {
        
    }

    private static string ConvertBugStatus(string status)
    {
        return status switch
        {
            "激活" => "Active",
            "已解决" => "Resolved",
            "已关闭" => "Closed",
            _ => throw new NotSupportedException()
        };
    }
}